package com.sxzbxc.weixin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sxzbxc.weixin.dao.SysRoleDao;
import com.sxzbxc.weixin.entity.SysRole;
import com.sxzbxc.weixin.service.SysRoleServiceI;

@Service("sysRoleServiceImpl")
public class SysRoleServiceImpl implements SysRoleServiceI {

	
	@Autowired
	private SysRoleDao roleDao ;
	
	
	
	@Override
	public List<SysRole> loadAll() {
		List<SysRole> loadAll = roleDao.loadAll();
		return loadAll;
	}

	@Override
	public void insertSelective(SysRole entity) {
		roleDao.insertSelective(entity);

	}

	@Override
	public SysRole selectByPrimaryKey(String id) {
		SysRole role = roleDao.selectByPrimaryKey(id);
		if(role!=null){
			return role;
		}
		return null;
	}

	@Override
	public void updateByPrimaryKeySelective(SysRole record) {
		// TODO Auto-generated method stub

	}

	@Override
	public void deleteByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		
	}

}
